package com.dmitriyp.movie;

import com.dmitriyp.movie.EntityObserver.ActionType;
import com.dmitriyp.movie.mapping.Movie;

public final class ChangeEvent {
	
	private final Movie movie;
	private ActionType type;
	
	public ChangeEvent(Movie movie, ActionType type) {
		this.movie = movie;
		this.type = type;
	}

	public ActionType getType() {
		return type;
	}

	public void setType(ActionType type) {
		this.type = type;
	}

	public Movie getMovie() {
		return movie;
	}
	
	
}
